.class public Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;
.super Landroidx/appcompat/app/AppCompatActivity;
.source "FilePickerActivity.java"

# interfaces
.implements Lcom/nbsp/materialfilepicker/ui/DirectoryFragment$FileClickListener;


# instance fields
.field private isChooseFolder:Z

.field private mCurrentPath:Ljava/lang/String;

.field private mFilter:Lcom/nbsp/materialfilepicker/filter/CompositeFilter;

.field private mStartPath:Ljava/lang/String;

.field private mToolbar:Landroidx/appcompat/widget/Toolbar;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 30
    invoke-direct {p0}, Landroidx/appcompat/app/AppCompatActivity;-><init>()V

    .line 49
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    .line 50
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    const/4 v0, 0x0

    .line 54
    iput-boolean v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->isChooseFolder:Z

    return-void
.end method

.method static synthetic access$000(Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;)Ljava/lang/String;
    .locals 0

    .line 30
    iget-object p0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic access$100(Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;Ljava/io/File;)V
    .locals 0

    .line 30
    invoke-direct {p0, p1}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->handleFileClicked(Ljava/io/File;)V

    return-void
.end method

.method private addFragmentToBackStack(Ljava/lang/String;)V
    .locals 3

    .line 175
    invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;

    move-result-object v0

    sget v1, Lcom/nbsp/materialfilepicker/R$id;->container:I

    iget-object v2, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mFilter:Lcom/nbsp/materialfilepicker/filter/CompositeFilter;

    .line 176
    invoke-static {p1, v2}, Lcom/nbsp/materialfilepicker/ui/DirectoryFragment;->getInstance(Ljava/lang/String;Lcom/nbsp/materialfilepicker/filter/CompositeFilter;)Lcom/nbsp/materialfilepicker/ui/DirectoryFragment;

    move-result-object p1

    invoke-virtual {v0, v1, p1}, Landroid/app/FragmentTransaction;->replace(ILandroid/app/Fragment;)Landroid/app/FragmentTransaction;

    move-result-object p1

    const/4 v0, 0x0

    .line 178
    invoke-virtual {p1, v0}, Landroid/app/FragmentTransaction;->addToBackStack(Ljava/lang/String;)Landroid/app/FragmentTransaction;

    move-result-object p1

    .line 179
    invoke-virtual {p1}, Landroid/app/FragmentTransaction;->commit()I

    return-void
.end method

.method private handleFileClicked(Ljava/io/File;)V
    .locals 1

    .line 222
    invoke-virtual {p1}, Ljava/io/File;->isDirectory()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 223
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->addFragmentToBackStack(Ljava/lang/String;)V

    .line 224
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    .line 225
    invoke-direct {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->updateTitle()V

    goto :goto_0

    .line 227
    :cond_0
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->setResultAndFinish(Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private initArguments()V
    .locals 3

    .line 97
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "arg_filter"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 98
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/nbsp/materialfilepicker/filter/CompositeFilter;

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mFilter:Lcom/nbsp/materialfilepicker/filter/CompositeFilter;

    .line 101
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "arg_choose_folder"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 102
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->isChooseFolder:Z

    .line 105
    :cond_1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "arg_start_path"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 106
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    .line 107
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    .line 110
    :cond_2
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "arg_current_path"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 111
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 113
    iget-object v1, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 114
    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    :cond_3
    return-void
.end method

.method private initFragment()V
    .locals 4

    .line 159
    invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;

    move-result-object v0

    sget v1, Lcom/nbsp/materialfilepicker/R$id;->container:I

    iget-object v2, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    iget-object v3, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mFilter:Lcom/nbsp/materialfilepicker/filter/CompositeFilter;

    .line 160
    invoke-static {v2, v3}, Lcom/nbsp/materialfilepicker/ui/DirectoryFragment;->getInstance(Ljava/lang/String;Lcom/nbsp/materialfilepicker/filter/CompositeFilter;)Lcom/nbsp/materialfilepicker/ui/DirectoryFragment;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/app/FragmentTransaction;->add(ILandroid/app/Fragment;)Landroid/app/FragmentTransaction;

    move-result-object v0

    .line 161
    invoke-virtual {v0}, Landroid/app/FragmentTransaction;->commit()I

    return-void
.end method

.method private initToolbar()V
    .locals 3

    .line 120
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mToolbar:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V

    .line 123
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    .line 124
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V

    .line 129
    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mToolbar:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    const-string v2, "mTitleTextView"

    invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v0

    .line 130
    invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V

    .line 132
    iget-object v1, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mToolbar:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 133
    sget-object v1, Landroid/text/TextUtils$TruncateAt;->START:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 136
    :catch_0
    invoke-direct {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->updateTitle()V

    return-void
.end method

.method private initViews()V
    .locals 2

    .line 140
    sget v0, Lcom/nbsp/materialfilepicker/R$id;->toolbar:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/appcompat/widget/Toolbar;

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mToolbar:Landroidx/appcompat/widget/Toolbar;

    .line 141
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "arg_choose_btn_text"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 143
    sget v1, Lcom/nbsp/materialfilepicker/R$id;->done:I

    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 144
    sget v0, Lcom/nbsp/materialfilepicker/R$string;->save:I

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    :cond_0
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 145
    iget-boolean v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->isChooseFolder:Z

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    const/16 v0, 0x8

    :goto_0
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 147
    new-instance v0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity$2;

    invoke-direct {v0, p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity$2;-><init>(Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;)V

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private setResultAndFinish(Ljava/lang/String;)V
    .locals 2

    .line 232
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string v1, "result_file_path"

    .line 233
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/4 p1, -0x1

    .line 234
    invoke-virtual {p0, p1, v0}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 235
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method private updateTitle()V
    .locals 3

    .line 165
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 166
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "/"

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    .line 167
    :goto_0
    iget-object v1, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 168
    iget-object v1, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    sget v2, Lcom/nbsp/materialfilepicker/R$string;->start_path_name:I

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceFirst(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 170
    :cond_1
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroidx/appcompat/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V

    :cond_2
    return-void
.end method


# virtual methods
.method public onBackPressed()V
    .locals 2

    .line 192
    invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;

    move-result-object v0

    .line 194
    invoke-virtual {v0}, Landroid/app/FragmentManager;->getBackStackEntryCount()I

    move-result v1

    if-lez v1, :cond_0

    .line 195
    invoke-virtual {v0}, Landroid/app/FragmentManager;->popBackStack()V

    .line 196
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    invoke-static {v0}, Lcom/nbsp/materialfilepicker/utils/FileUtils;->cutLastSegmentOfPath(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    .line 197
    invoke-direct {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->updateTitle()V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 199
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setResult(I)V

    .line 200
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    .line 58
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_0

    .line 59
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v2, 0x200

    invoke-virtual {v0, v2}, Landroid/view/Window;->addFlags(I)V

    .line 60
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/high16 v2, 0x8000000

    invoke-virtual {v0, v2}, Landroid/view/Window;->addFlags(I)V

    .line 61
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/high16 v2, -0x80000000

    invoke-virtual {v0, v2}, Landroid/view/Window;->addFlags(I)V

    .line 62
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/view/Window;->setStatusBarColor(I)V

    .line 65
    :cond_0
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onCreate(Landroid/os/Bundle;)V

    .line 67
    sget v0, Lcom/nbsp/materialfilepicker/R$layout;->activity_file_picker:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 69
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, v1, :cond_1

    .line 70
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity$1;

    invoke-direct {v1, p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity$1;-><init>(Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V

    .line 83
    :cond_1
    invoke-direct {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->initArguments()V

    .line 84
    invoke-direct {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->initViews()V

    .line 85
    invoke-direct {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->initToolbar()V

    if-eqz p1, :cond_2

    const-string v0, "state_start_path"

    .line 88
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    const-string v0, "state_current_path"

    .line 89
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    goto :goto_0

    .line 91
    :cond_2
    invoke-direct {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->initFragment()V

    :goto_0
    return-void
.end method

.method public onFileClicked(Ljava/io/File;)V
    .locals 4

    .line 213
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity$3;

    invoke-direct {v1, p0, p1}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity$3;-><init>(Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;Ljava/io/File;)V

    const-wide/16 v2, 0x96

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2

    .line 184
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v1, 0x102002c

    if-ne v0, v1, :cond_0

    .line 185
    invoke-virtual {p0}, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->onBackPressed()V

    .line 187
    :cond_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result p1

    return p1
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2

    .line 206
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 207
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mCurrentPath:Ljava/lang/String;

    const-string v1, "state_current_path"

    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 208
    iget-object v0, p0, Lcom/nbsp/materialfilepicker/ui/FilePickerActivity;->mStartPath:Ljava/lang/String;

    const-string v1, "state_start_path"

    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
